import hello from "./hello-world.js";
import "../style.css";
import imgsrc from "../assets/img-1.png";
import svgsrc from "../assets/git.svg";
import examplTxt from "../assets/hello.txt";
import jpgsrc from "../assets/2.jpg";
hello();
const span = document.createElement('span');
span.classList.add("hello");
span.innerHTML = "sssssssssssssssssssssssssssssssssssssssssssssssssss";
document.body.appendChild(span);

const img = document.createElement('img');
img.src = imgsrc;
document.body.appendChild(img);

const img_2 = document.createElement('img');
img_2.style.cssText = "width:200px;height:200px;background-color:blue;"
img_2.src = svgsrc;
document.body.appendChild(img_2);

// 显示txt
const block = document.createElement("div");
block.classList.add('block');
block.textContent = examplTxt;
document.body.appendChild(block);

const img_3 = document.createElement('img');
img_3.style.cssText = "width:200px;height:200px;background-color:blue;"
img_3.src = jpgsrc;
document.body.appendChild(img_3);